package com.skwyb.form.constants;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author Administrator
 * @date 2017/3/8
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum OperateType {
    /**
     * 操作类型枚举
     */
    SELECT(1, "根据条件查询"),
    GET(2, "根据主键查询"),
    SELECT_ALL(3, "查询所有记录"),
    SELECT_PAGE(4, "分页查询"),
    INSERT(5, "新增"),
    SAVE(6, "新增或修改"),
    UPDATE(7, "修改"),
    DELETE(8, "删除"),
    DELETE_WHERE(10, "根据条件删除"),
    DELETE_BATCH(11, "批量删除"),
    SELECT_ONE(12, "查询单条记录"),
    INSET_BATCH(13, "批量新增"),
    COUNT(14, "统计");

    private int code;
    private String message;
}

